//
//  NetWorkTool.h
//  YunGou
//
//  Created by macbook on 16/5/26.
//  Copyright © 2016年 macbook. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "NetWorkManager.h"

@interface NetWorkTool : NSObject
#pragma -mark 首页
//头部滚动视图
+ (void)topScrollViewWithSuccess:(requestSuccess)success failure:(requestFailure)failure;

//热门推荐
+ (void)hotRecommendWithStart:(NSInteger)start success:(requestSuccess)success failure:(requestFailure)failure;
//新品
+ (void)newProductsWithStart:(NSInteger)start success:(requestSuccess)success failure:(requestFailure)failure;

//闪夺
+ (void)shanDuoWithStart:(NSInteger)start success:(requestSuccess)success failure:(requestFailure)failure;

//巧夺
+ (void)qiaoDuoWithStart:(NSInteger)start success:(requestSuccess)success failure:(requestFailure)failure;

//晒单
+ (void)shaiDanWithWithIsMine:(BOOL)isMine start:(NSInteger)start Success:(requestSuccess)success failure:(requestFailure)failure;

//晒单添加评论
+ (void)addCommentWithSdId:(NSString *)sd_id username:(NSString *)username content:(NSString *)contnet success:(requestSuccess)success failure:(requestFailure)failure;

//评论列表
+ (void)commentListWithSdId:(NSString *)sd_id success:(requestSuccess)success failure:(requestFailure)failure;

//最新揭晓
+ (void)mainLatestAnnounceWithSuccess:(requestSuccess)success failure:(requestFailure)failure;

#pragma -mark 分类
//分类类别
+ (void)categoryTypeWithSuccess:(requestSuccess)success failure:(requestFailure)failure;

//分类商品列表
+ (void)categoryListWithCategoryId:(NSString *)categoryId sortId:(NSString *)sortId start:(NSInteger)start success:(requestSuccess)success failure:(requestFailure)failure;

#pragma -mark 最新揭晓
+ (void)latestAnnounceWithStart:(NSInteger)start success:(requestSuccess)success failure:(requestFailure)failure;

#pragma -mark 购物车
//添加购物车
+ (void)addShopCartWithGoodsId:(NSString *)goodsId success:(requestSuccess)success failure:(requestFailure)failure;

//购物车列表
+ (void)shopCartListWithSuceess:(requestSuccess)success failure:(requestFailure)failure;

//删除购物车
+ (void)deleteShopCartWithGoodsId:(NSString *)goodsId success:(requestSuccess)success failure:(requestFailure)failure;

//修改购物车商品数量
+ (void)updateShopCartWithGoodsId:(NSString *)goodsId goodsNum:(NSString *)goodsNum success:(requestSuccess)success failure:(requestFailure)failure;

//结算
+ (void)balanceAccountWithSuccess:(requestSuccess)success failure:(requestFailure)failure;

#pragma -mark 商品详情界面相关子内容
//晒单分享
+ (void)shaiDanFenXiangWithGoodsId:(NSString *)goodsId start:(NSInteger)start success:(requestSuccess)success failure:(requestFailure)failure;

//计算详情
+ (void)calculateInfoWithGoodsId:(NSString *)goodsId success:(requestSuccess)success failure:(requestFailure)failure;

//所有参与记录
+ (void)enjoyRecordWithGoodsId:(NSString *)goodsId success:(requestSuccess)success failure:(requestFailure)failure;

#pragma -mark 支付
//三方支付
+ (void)payWithOrderNo:(NSString *)orderNo Channel:(NSString *)channel amount:(NSString *)amount success:(requestSuccess)success failure:(requestFailure)failure;

//余额支付
+ (void)payMoneyWithCode:(NSString *)code success:(requestSuccess)success failure:(requestFailure)failure;

#pragma -mark 我的
//我的收获地址
+ (void)myReceiveAddressWithSuccess:(requestSuccess)success failure:(requestFailure)failure;

//添加收货地址
+ (void)addReceiveAddressWithShouHuoren:(NSString *)shouHuoRen mobile:(NSString *)mobile address:(NSString *)address jieDao:(NSString *)jieDao code:(NSString *)code isDefault:(NSString *)isDefault success:(requestSuccess)success failure:(requestFailure)failure;

//删除收获地址
+ (void)deleteReceiveAddressWithAddressId:(NSString *)addressId success:(requestSuccess)success failure:(requestFailure)failure;

//编辑收获地址
+ (void)editReceiveAddressWithId:(NSString *)Id houHuoren:(NSString *)shouHuoRen mobile:(NSString *)mobile address:(NSString *)address jieDao:(NSString *)jieDao code:(NSString *)code isDefault:(NSString *)isDefault success:(requestSuccess)success failure:(requestFailure)failure;

//云购记录
+ (void)buyRecordWithSuccess:(requestSuccess)success failure:(requestFailure)failure;

//充值记录
+ (void)rechargeRecordWithSuccess:(requestSuccess)success failure:(requestFailure)faliure;

//中奖记录
+ (void)winRecordWithSuccess:(requestSuccess)success failure:(requestFailure)failure;

//添加晒单分享
+ (void)addShareOrderWithGoodsId:(NSString *)goodsId sd_issue:(NSString *)sd_issue sd_ip:(NSString *)sd_ip sd_title:(NSString *)sd_title sd_content:(NSString *)sd_content sd_photoList:(NSString *)sd_photoList success:(requestSuccess)success failure:(requestFailure)failure;


//编辑个人信息
+ (void)updateUserInfoWithNickName:(NSString *)nickName img:(NSString *)img gender:(NSString *)gender birth:(NSString *)birth qq:(NSString *)qq email:(NSString *)email address:(NSString *)address success:(requestSuccess)success failure:(requestFailure)failure;

//修改密码
+ (void)changePwdWithMobile:(NSString *)mobile oldPwd:(NSString *)oldPwd newPwd:(NSString *)newPwd success:(requestSuccess)success failure:(requestFailure)failure;

//更换手机号
+ (void)changeMobileWithOldMobile:(NSString *)oldMobile newMobile:(NSString *)newMobile password:(NSString *)password success:(requestSuccess)success failure:(requestFailure)failure;

//意见反馈
+ (void)feedBackWithContent:(NSString *)content success:(requestSuccess)success failure:(requestFailure)failure;

//账户余额
+ (void)userAccountWithSuccess:(requestSuccess)success failure:(requestFailure)failure;


#pragma -mark 用户相关
//注册
+ (void)registerWithPhone:(NSString *)phone password:(NSString *)password success:(requestSuccess)success failure:(requestFailure)failure;

//登录
+ (void)loginWithPhone:(NSString *)phone password:(NSString *)password success:(requestSuccess)success failure:(requestFailure)failure;

//三方登录
+ (void)thirdLoginWithThirdPartyUid:(NSString *)uid success:(requestSuccess)success failure:(requestFailure)failure;

//忘记密码
+ (void)forgetPasswordWithPhone:(NSString *)phone password:(NSString *)password success:(requestSuccess)success failure:(requestFailure)failure;

//发送验证码
+ (void)sendVerfiWithPhone:(NSString *)tel content:(NSString *)content success:(requestSuccess)success failure:(requestFailure)failure;

#pragma -mark 辅助函数
//上传图片
+ (void)uploadWithImage:(UIImage *)img success:(requestSuccess)success failure:(requestFailure)failure;
@end
